package com.kuns.subject.domian.convert;

import com.kuns.subject.domian.entity.SubjectInfoBO;
import com.kuns.subject.domian.entity.SubjectOptionBO;
import com.kuns.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectInfoConverter {

    SubjectInfoConverter INSTANCE = Mappers.getMapper(SubjectInfoConverter.class);

    SubjectInfo convertBoToEntity(SubjectInfoBO subjectInfoBO);

    List<SubjectInfoBO> convertEntityListToBoList(List<SubjectInfo> subjectInfoList);

    SubjectInfoBO convertOptionAndInfoToBo(SubjectInfo subjectInfo, SubjectOptionBO subjectOptionBO);

}
